﻿using Common.Device.Views.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Common.Device.Views
{
    /// <summary>
    /// TestChannel.xaml 的交互逻辑
    /// </summary>
    public partial class TestChannelView : UserControl
    {
        public ViewModels.TestListViewModel viewModel =new ViewModels.TestListViewModel();
        /// <summary>
        /// 主界面精简测试通道显示
        /// </summary>
        public TestChannelView()
        {
            InitializeComponent();
            DataContext = viewModel;
            //各通道包含独立的测试日志控件
            viewModel.document = new Common.Tool.Models.RichDocument();
        }
        private void Info_Click(object sender, RoutedEventArgs e)
        {
            //弹窗显示完整测试表
            TestChannelFullView.Show(viewModel);
        }
    }
}
